﻿namespace PSAMMatrixCloud.BLL.BizCommon
{
    public class ErrorMsg
    {
        //在字段上面加上自定义属性 自定义属性显示错误的文本text值(可用于多语言)
        //字段value为错误提示的编码
        private static readonly ErrorMsg instance = new ErrorMsg();

        private ErrorMsg()
        {
        }

        public static ErrorMsg GetInstance()
        {
            return instance;
        }

        #region 通用 00-00

        /// <summary>
        /// AppID不完为空
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("appid不能为空")]
        public const string MsgMissingAppID = "00-00-01";

        /// <summary>
        /// methodname不能为空
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("methodname不能为空")]
        public const string MsgMissingMethodName = "00-00-02";

        /// <summary>
        /// timestamp不完为空
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("timestamp不能为空")]
        public const string MsgMissingTimestamp = "00-00-03";

        /// <summary>
        /// appversion不完为空
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("appversion不能为空")]
        public const string MsgMissingAppVersion = "00-00-04";

        /// <summary>
        /// userid不完为空
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("userid不能为空")]
        public const string MsgMissingUserID = "00-00-05";

        /// <summary>
        /// sign不完为空
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("sign不能为空")]
        public const string MsgMissingSign = "00-00-06";

        /// <summary>
        /// timestamp无效
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("timestamp无效")]
        public const string MsgInvalidTimestamp = "00-00-07";

        /// <summary>
        /// methodname无效
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("methodname无效")]
        public const string MsgInvalidMethodName = "00-00-08";

        /// <summary>
        /// 服务器异常
        /// </summary>
        [Common.CustomField("服务器异常")]
        public const string MsgServicesError = "00-00-09";

        /// <summary>
        /// 请求太频繁,请稍后再试！
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("请求太频繁,请稍后再试")]
        public const string MsgRequestFrequently = "00-00-10";

        #endregion 通用 00-00

        #region 通用 50-00

        /// <summary>
        /// 参数不完整或为空
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("参数不完整或为空")]
        public const string MsgMissingParameter = "50-00-01";

        /// <summary>
        /// postdata参数不完整或者为空
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("postdata参数不完整或者为空")]
        public const string MsgMissingPostData = "50-00-02";

        /// <summary>
        /// 解析参数发生错误
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("解析参数发生错误")]
        public const string MsgParamError = "50-00-04";

        /// <summary>
        /// 数据存储失败
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("数据存储失败")]
        public const string MsgSaveFail = "50-00-10";

        /// <summary>
        /// 接口调用失败
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("接口调用失败")]
        public const string MsgApiFail = "50-00-88";

        /// <summary>
        /// AppId不存在
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("AppId不存在")]
        public const string MsgAppIDNotExit = "50-00-06";

        /// <summary>
        /// AppId已过期或无效
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("AppId已过期或无效")]
        public const string MsgAppIDTimeOut = "50-00-03";

        /// <summary>
        /// 签名无效
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("签名无效")]
        public const string MsgInvalidSign = "50-00-05";

        /// <summary>
        /// Token丢失
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("Token丢失")]
        public const string MsgTokenLost = "50-00-08";

        /// <summary>
        /// 签名不通过
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("签名不通过")]
        public const string MsgSignFail = "50-00-07";

        /// <summary>
        /// 参数无效或参数是必须的
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("参数无效或参数是必须的")]
        public const string MsgParamInvaild = "50-00-09";

        /// <summary>
        /// 无数据
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("无数据")]
        public const string MsgNoData = "50-00-11";

        /// <summary>
        /// 成功
        /// </summary>
        [Common.CustomField("成功")]
        public const string MsgSaveSuccess = "50-00-12";

        /// <summary>
        /// pagesize错误
        /// </summary>
        [Common.CustomField("pagesize错误,最大不能超过100")]
        public const string MsgPageSizeError = "50-00-18";

        /// <summary>
        ///网络异常,请稍后再试！
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("网络异常,请稍后再试")]
        public const string MsgNetError = "50-00-19";

        /// <summary>
        /// ParingID已过期或无效
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("ParingID已过期或无效")]
        public const string MsgParingIDTimeOut = "50-00-20";

        /// <summary>
        /// ParingID不存在
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("ParingID不存在")]
        public const string MsgMissingParingID = "50-00-21";

        /// <summary>
        /// appid与parkingid关联关系无效
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("appid与parkingid关联关系无效！可能原因:1,appid无效(过期,禁用或已删除) 2,parking无效(禁用或已删除) 3,appid与parkingid无关联关系")]
        public const string MsgInvalidAppidVsParkingid = "50-00-23";

        /// <summary>
        /// 上传的文件数量小于0
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("上传的文件数量小于0")]
        public const string MsgFilesNotExit = "50-00-22";

        /// <summary>
        /// Token过期
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("Token过期")]
        public const string MsgTokenExpired = "50-00-23";
        /// <summary>
        /// 图片大小超出限制
        /// </summary>
        public const string MsgErrorFileOverLimit = "50-00-28&图片大小超出限制";
        /// <summary>
        /// 图片类型不符合
        /// </summary>
        public const string MsgErrorFileTypeOverLimit = "50-00-29&图片类型不符合";
        #endregion 通用 50-00


        #region 50-10

        /// <summary>
        /// 不存在的券
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("不存在的券")]
        public const string MsgInvalidCouponID = "50-10-01";

        #endregion 50-10

        #region 50-11

        /// <summary>
        /// 车道id
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("车道id不存在")]
        public const string MsgInvalidLaneID = "50-11-01";

        #endregion 50-11

        #region 50-12

        /// <summary>
        /// 车道id
        /// </summary>
        [PSAMMatrixCloud.Common.CustomField("矩阵编号存在")]
        public const string MsgMatrixNoExist = "50-12-01";

        #endregion 50-12

    }
}